package com.ynet.mbankserviceimplmyself.controller;

import com.ynet.mbankserviceimplmyself.model.UserCenterModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName
 * @Description 测试Controller
 * @Author liwq
 * @Date 2021/1/17 14:17
 * @Version 1.0
 */
@RestController
public class TestController {
    @Autowired
    private UserCenterModel userCenterModel;

    @ResponseBody
    @RequestMapping("/getUserById")
    public String getUserByPhone(Integer id) {
        return userCenterModel.getUserById(id);
    }

}
